package com.chpn.log.controller;

import com.chpn.log.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    private LogService logService;




    @GetMapping("testCreate")
    public String testCreate(){
        logService.crate();
        return "successCreate";
    }

    @GetMapping("testLog/{type}")
    public String testLog(@PathVariable("type") int type){
        if (type == 0) {
        } else{
        }
        return "success";
    }
}
